//
//  ViewController.m
//  第三方登录
//
//  Created by 李泽昆 on 16/10/31.
//  Copyright © 2016年 Frank-Jobs-Lee. All rights reserved.
//

#import "ViewController.h"
#import <ShareSDK/ShareSDK.h>
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    

}
- (IBAction)weixin:(id)sender {
    [ShareSDK authorize:SSDKPlatformTypeWechat settings:nil onStateChanged:^(SSDKResponseState state, SSDKUser *user, NSError *error) {
        NSLog(@"%@",user.icon);
        NSLog(@"%@",user.aboutMe);
        NSLog(@"%@",user.nickname);
    }];
}
- (IBAction)Click:(id)sender {
    [ShareSDK authorize:SSDKPlatformTypeSinaWeibo settings:nil onStateChanged:^(SSDKResponseState state, SSDKUser *user, NSError *error) {
        NSLog(@"%@",user.icon);
        NSLog(@"%@",user.aboutMe);
        NSLog(@"%@",user.nickname);
        
    }];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
